﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.stack_ardealite_ditch>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	磷石膏堆积坝（每日）
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul>
                <li><a href="/Record/StackWater/<%=ViewData["id"]%>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>水位及水质</span></a></li>
                <li><a href="/Record/BackWater/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>进浆及回水</span></a></li>
                <li><a href="/Record/Settle/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>沉降及位移观测</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>磷石膏堆积坝</span></a></li>
                <li><a href="/Record/Ditch/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>截洪沟</span></a></li>
                <li><a href="/Record/PiezometerWell/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>测压井</span></a></li>
                <li><a href="/Record/PiezometerBase/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>测压仪</span></a></li>
                <li><a href="/Record/Drain/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>导渗系统</span></a></li>
	        </ul>
	    </div>
	</div>

    <%
           bool result = (bool)ViewData["success"];
           if(result){ 
        %>
           <div style="margin-top:20px;font-weight:bold;color:blue;text-align:center">磷石膏堆积坝更新成功</div>
        <%
        }
        %>

    <% using (Html.BeginForm())
    {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.stack_id) %>
        <%= Html.HiddenFor(model => model.date) %>
        <%= Html.Hidden("factoryId", ViewData["factoryId"]) %>
            
    <table class="tableCss" cellspacing="0" cellpadding="0" align="center" border="0" style="margin-top:10px;">
        <tr>
            <th colspan="2" class="heightrow" align="center" style="text-align:center">
                磷石膏堆积坝（每日）
            </th>
        </tr>
        <tr>
            <td class="row1" align="left" width="100px" style="padding-left:20px">测量人员：</td>
            <td class="row1" align="left">
                <%= Html.DropDownList("tester_id", ViewData["users"] as List<SelectListItem>, "请选择", new { style = "width:150px" })%>
                <%= Html.ValidationMessageFor(model => model.tester_id)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" width="100px" style="padding-left:20px">外堤最高点高程：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.dyke_top_El)%> m
                <%= Html.ValidationMessageFor(model => model.dyke_top_El)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">外堤最低点高程：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.dyke_bottom_El)%> m
                <%= Html.ValidationMessageFor(model => model.dyke_bottom_El)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">安全超高：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.safe_height)%> m
                <%= Html.ValidationMessageFor(model => model.safe_height)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" style="padding-left:20px">外堤平均宽度：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.dyke_avg_width)%> m
                <%= Html.ValidationMessageFor(model => model.dyke_avg_width)%>
            </td>
        </tr>
        
        <tr>
            <td class="row1" align="left" style="padding-left:20px">环形沟平均宽度：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.cycle_groove_avg_width)%> m
                <%= Html.ValidationMessageFor(model => model.cycle_groove_avg_width)%>
            </td>
        </tr>
        
        <tr>
            <td class="row1" align="left" style="padding-left:20px">内堤平均宽度：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.inner_dyke_avg_width)%> m
                <%= Html.ValidationMessageFor(model => model.inner_dyke_avg_width)%>
            </td>
        </tr>
        
        <tr>
            <td class="row1" align="left" style="padding-left:20px">堆积坝下游边坡坡度：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.dike_downstream_slope_rate)%>
                <%= Html.ValidationMessageFor(model => model.dike_downstream_slope_rate)%>
            </td>
        </tr>
        
        <tr>
            <td class="row1" align="left" style="padding-left:20px">沉积滩最大宽度：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.precipitation_beach_max_width)%> m
                <%= Html.ValidationMessageFor(model => model.precipitation_beach_max_width)%>
            </td>
        </tr>
        
        <tr>
            <td class="row1" align="left" style="padding-left:20px">沉积滩最小宽度：</td>
            <td class="row1" align="left">
                <%= Html.TextBoxFor(model => model.precipitation_beach_min_width)%> m
                <%= Html.ValidationMessageFor(model => model.precipitation_beach_min_width)%>
            </td>
        </tr>
        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">是否存在集中渗流（管涌）：</td>
        </tr>
        <tr>
            <td colspan="2"  class="row1" align="left" style="padding-left:20px">
                <span><input type="radio" name="is_central_leaked" value="1" <%if (Model.is_central_leaked == 1){ %> checked="checked"<%} %>/>有</span>
                <span><input type="radio" name="is_central_leaked" value="0" <%if (Model.is_central_leaked == 0){ %> checked="checked"<%} %>/>无</span>
            </td>
        </tr>
        <tr>
            <td colspan="2"  class="row1"  align="left" style="padding-left:20px">
                <%= Html.TextAreaFor(model => model.central_leaked_desc, new { cols="80",rows="10"})%>
                <%= Html.ValidationMessageFor(model => model.central_leaked_desc)%>
            </td>
        </tr>

        
        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">是否存在坡面滑动：</td>
        </tr>
        <tr>
            <td colspan="2"  class="row1" align="left" style="padding-left:20px">
                <span><input type="radio" name="is_groove_ruined" value="1" <%if (Model.is_groove_ruined == 1){ %> checked="checked"<%} %>/>有</span>
                <span><input type="radio" name="is_groove_ruined" value="0" <%if (Model.is_groove_ruined == 0){ %> checked="checked"<%} %>/>无</span>
            </td>
        </tr>
        <tr>
            <td colspan="2"  class="row1"  align="left" style="padding-left:20px">
                <%= Html.TextAreaFor(model => model.groove_ruined_desc, new { cols="80",rows="10"})%>
                <%= Html.ValidationMessageFor(model => model.groove_ruined_desc)%>
            </td>
        </tr>
        
        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">是否存在边坡或坡脚隆起：</td>
        </tr>
        <tr>
            <td colspan="2"  class="row1" align="left" style="padding-left:20px">
                <span><input type="radio" name="is_slope_hunch" value="1" <%if (Model.is_slope_hunch == 1){ %> checked="checked"<%} %>/>有</span>
                <span><input type="radio" name="is_slope_hunch" value="0" <%if (Model.is_slope_hunch == 0){ %> checked="checked"<%} %>/>无</span>
            </td>
        </tr>
        <tr>
            <td colspan="2"  class="row1"  align="left" style="padding-left:20px">
                <%= Html.TextAreaFor(model => model.slope_hunch_desc, new { cols="80",rows="10"})%>
                <%= Html.ValidationMessageFor(model => model.slope_hunch_desc)%>
            </td>
        </tr>
        
        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">是否存在纵向裂缝：</td>
        </tr>
        <tr>
            <td colspan="2"  class="row1" align="left" style="padding-left:20px">
                <span><input type="radio" name="is_vertical_break" value="1" <%if (Model.is_vertical_break == 1){ %> checked="checked"<%} %>/>有</span>
                <span><input type="radio" name="is_vertical_break" value="0" <%if (Model.is_vertical_break == 0){ %> checked="checked"<%} %>/>无</span>
            </td>
        </tr>
        <tr>
            <td colspan="2"  class="row1"  align="left" style="padding-left:20px">
                <%= Html.TextAreaFor(model => model.vertical_break_desc, new { cols="80",rows="10"})%>
                <%= Html.ValidationMessageFor(model => model.vertical_break_desc)%>
            </td>
        </tr>

        <tr>
            <td class="row1" align="left" colspan="2" style="padding-top:20px;padding-left:20px">是否存在横向裂缝：</td>
        </tr>
        <tr>
            <td colspan="2"  class="row1" align="left" style="padding-left:20px">
                <span><input type="radio" name="is_horizontal_break" value="1" <%if (Model.is_horizontal_break == 1){ %> checked="checked"<%} %>/>有</span>
                <span><input type="radio" name="is_horizontal_break" value="0" <%if (Model.is_horizontal_break == 0){ %> checked="checked"<%} %>/>无</span>
            </td>
        </tr>
        <tr>
            <td colspan="2"  class="row1"  align="left" style="padding-left:20px">
                <%= Html.TextAreaFor(model => model.horizontal_break_desc, new { cols = "80", rows = "10" })%>
                <%= Html.ValidationMessageFor(model => model.horizontal_break_desc)%>
            </td>
        </tr>
    </table>
    <div style="margin-top:25px;text-align:center">
        <input type="submit" value="提    交" style="font-size:16px;font-weight:bold" />
    </div>
    <% } %>
</asp:Content>
